"""
首页
"""
import allure

import config

from base.base_page import BasePage
from page.market import Market


class Main(BasePage):

    @allure.step(title='进入详情页')
    def go_to_market(self):
        self.steps(config.BASE_DIR + '/page/yaml_page/main.yaml')
        self.allure_screenshot('进入行情页')
        return Market(self._driver)


